package cn.iocoder.yudao.framework.business.captcha.pojo.form;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 传统的图形验证码请求参数
 */
@Data
public class LegacyCaptchaDTO implements DTO {

    @Schema(description = "验证码标识")
    @NotBlank(message = "验证码标识不能为空", groups = EnableGroup.class)
    private String key;

    @Schema(description = "验证码文本")
    @NotBlank(message = "验证码文本不能为空", groups = EnableGroup.class)
    private String code;


    /**
     * 开启验证码的 Group
     */
    public interface EnableGroup {

    }

}
